{extend name="$base_mall" /}
{block name="resources"}
<style>
body{background: #fff;}
.error-container .error-img{margin-top: 50px;text-align: center;}
.error-container .error-img img{height: 260px;}
.error-container .error-message{text-align: center;}
.error-container .error-message h3.title{font-size: 30px;margin-top: 10px;margin-bottom: 15px;padding: 0 20px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.error-container .error-message .reason p.reason-title{font-size: 14px;line-height: 25px;}
.error-container .error-message .reason p.text{font-size: 14px;line-height: 25px;margin-bottom: 15px;padding: 0 20px;}
.error-container .operation a{display: inline-block;color: #fff;width: 130px;height: 34px;text-align: center;line-height: 34px;margin-right: 5px;}
</style>
{/block}
{block name="head"}{/block}
{block name="main"}
<div class="error-container">
	<div class="error-img">
		<img src="WAP_IMG/error_img.png">
	</div>
	<div class="error-message">
		 <h3 class="title">哎呀！页面找不到了！</h3>
		 <div class="reason">
			 <p class="reason-title ns-text-color-gray">可能原因：</p>
			 <p class="text ns-text-color-gray">网站可能正在维护或者是程序错误</p>
		 </div>
		 <div class="operation">
	 		<a href="javascript:jump('home');" class="ns-bg-color">返回首页</a>
	 		<a href="javascript:jump('back');" class="ns-text-color-gray ns-bg-color-gray">返回前页</a>
		 </div>
	</div>
</div>
{/block}
{block name="footer"}{/block}
{block name="script"}
<script type="text/javascript">
window.onload = function(){
	var title = "哎呀！页面找不到了！",
		reason = '网站可能正在维护或者是程序错误';
	if(window.sessionStorage && sessionStorage.errorMsg != undefined){
		var errorMsg = JSON.parse(sessionStorage.errorMsg);
		if(errorMsg.title != undefined && errorMsg.title != ''){
			title = errorMsg.title;
		}
		if(errorMsg.message != undefined && errorMsg.message != ''){
			reason = errorMsg.message;
		}
	}
	$(".error-message .title").text(title);
	$(".error-message .reason .text").text(reason);
};

function jump(type){
	if(window.sessionStorage){
		sessionStorage.removeItem('errorMsg');
	}
	if(type == 'home') location.href = "{:__URL('MALL_MAIN')}";
	if(type == 'back') window.history.back(-1);
}
</script>
{/block}